using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace Test {
	class NdtsSummaryFix {

		static void MainX() {

			foreach(string line in File.ReadAllLines(@"\\pon-wpwb02-cl01\c$\Inetpub\ftproot\NDTS\Archive\NDTSsummary.csv.250314150628.ERROR_NOT_PROCESSED.txt"))
			{
				List<string> lst=new List<string>(line.Split(','));
				if(lst.Count==33)
				{
					Console.WriteLine(line);
					if(lst[10]=="")
						lst.RemoveAt(10);
				}

				if(lst.Count!=32)
					throw new Exception();



				File.AppendAllText("NDTSsummary.csv",string.Join(",",lst.ToArray())+Environment.NewLine);
			}
		}
	}
}
